{extend name='layout/base' /}
{block name='title'}照片信息列表{/block}
{block name='content'}
<!-- /.box -->
<div class="box">
    <div class="box-header with-border">
        <h3 class="box-title">照片信息 共有<strong style="color:red;">{$picCount}</strong>个</h3>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <!-- search form -->
        <form action="" method="get" class="sidebar-form0" style="width:100%;margin: 0 auto;">
            <div>请选择日期：</div>
            <div class="input-group">
                <input type="date" class="form-control" id="date" name="date" value="{:$date ? $date : '';}" >
                <span class="input-group-btn">
                    <a type="button" id="reset-btn" class="btn btn-flat bg-gray" href="{:url('Admin/Pic/self')}">
                        重置
                    </a>
                </span>
            </div>
            <div class="input-group">
                <input type="text" id="q" name="q" class="form-control" value="{:$q ? $q : '';}" placeholder="请输入照片说明...">
                <span class="input-group-btn">
                    <button type="submit" id="search-btn" class="btn btn-flat bg-green">
                        <!--<i class="fa fa-search"></i>-->
                        搜索
                    </button>
                </span>
            </div>
        </form>
        <!-- /.search form -->
        <table class="table table-bordered">
            <tr>
                <th>照片</th>
            </tr>
            {volist name='list' id='pic'}
            <tr>
                <!--<td>{$pic.pic_info}</td>-->
                <!--<td>{$pic.pic_time}</td>-->
                <!--<td>{$pic.admin.admin_name}</td>-->
                <td align="center">
                    <p>{$pic.pic_info}</p>
                    <a href="{$pic.pic_url}" target="_blank"><img src="{$pic.pic_url}" height="200" /></a>
                    <p>{$pic.pic_time}</p>
                </td>
            </tr>
            {/volist}
        </table>
    </div>
    <!-- /.box-body -->
    <div class="box-footer clearfix">
        <ul class="pagination pagination-sm no-margin pull-right">
            {$list|raw}
        </ul>
    </div>
</div>
<!-- /.box -->
{/block}